package com.stack.apis.wemedia.fallback;

import com.stack.apis.article.IArticleClient;
import com.stack.apis.wemedia.IWemediaClient;
import com.stack.model.article.dtos.ArticleDto;
import com.stack.model.common.dtos.ResponseResult;
import com.stack.model.common.enums.AppHttpCodeEnum;
import com.stack.model.wemedia.NewsIdVO;
import com.stack.model.wemedia.dtos.WmNewsPageReqDto;
import com.stack.model.wemedia.pojos.WmChannel;
import com.stack.model.wemedia.pojos.WmNews;
import com.stack.model.wemedia.pojos.WmUser;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;


@Component
public class IWemediaClientFallback implements IWemediaClient {

    @Override
    public ResponseResult getChannels() {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

    @Override
    public WmChannel getChannelBase(Integer id) {
        return null;
    }

    @Override
    public Boolean saveChannel(WmChannel dto) {
        return null;
    }

    @Override
    public void updateChannel(WmChannel wmChannel) {

    }

    @Override
    public WmUser getUserBase(Integer id) {
        return null;
    }

    @Override
    public Boolean updateNewsById(WmNews wmNews) {
        return null;
    }

    @Override
    public ResponseResult getNewsList(WmNewsPageReqDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

    @Override
    public void saveApArticleAndWmNews(NewsIdVO dto) {

    }
}
